package com.ogilvy.audi.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * TblCircleAcmnt entity. @author MyEclipse Persistence Tools
 */
@Entity
   @Table(name="TBL_CIRCLE_ACMNT")
   @org.hibernate.annotations.Table(appliesTo = "TBL_CIRCLE_ACMNT", comment = " 圈子相册评论表 ")
public class CircleAcmnt extends  BaseObject implements java.io.Serializable {

	// Fields

	private Long cmtId;
	private String cmtDesc;
	private Date crDate;
	private String cmtType;
	private Long isDisplay;
//	private Long albumId;
	private Long totalNum;
	private Long userId;
	private String userName;
    private Integer version;
    // private CircleAlbum circleAlbum;
	// Constructors

	/** default constructor */
	public CircleAcmnt() {
	}

	/** full constructor */
	public CircleAcmnt(String cmtDesc, Date crDate, String cmtType,
                       Long isDisplay, Long totalNum, Long userId,
                       String userName) {
		this.cmtDesc = cmtDesc;
		this.crDate = crDate;
		this.cmtType = cmtType;
		this.isDisplay = isDisplay;

		this.totalNum = totalNum;
		this.userId = userId;
		this.userName = userName;
	}

	// Property accessors
        @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
	public Long getCmtId() {
		return this.cmtId;
	}

	public void setCmtId(Long cmtId) {
		this.cmtId = cmtId;
	}
   @Column(length = 200)
	public String getCmtDesc() {
		return this.cmtDesc;
	}

	public void setCmtDesc(String cmtDesc) {
		this.cmtDesc = cmtDesc;
	}
       @Column(length =8)
	@Temporal(value= TemporalType.TIMESTAMP)
    public Date getCrDate() {
        return crDate;
    }

    public void setCrDate(Date crDate) {
        this.crDate = crDate;
    }
     @Column(length = 50)
    public String getCmtType() {
		return this.cmtType;
	}

	public void setCmtType(String cmtType) {
		this.cmtType = cmtType;
	}
 @Column(length = 50)
	public Long getIsDisplay() {
		return this.isDisplay;
	}

	public void setIsDisplay(Long isDisplay) {
		this.isDisplay = isDisplay;
	}


  @Column()
	public Long getTotalNum() {
		return this.totalNum;
	}

	public void setTotalNum(Long totalNum) {
		this.totalNum = totalNum;
	}
    @Column()
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
       @Column(length = 100)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
    @Version
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
/*   @ManyToOne(targetEntity= CircleAlbum.class,fetch = FetchType.LAZY,cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH})
    @JoinColumn(name="CIRCLE_ALBUM_ID",nullable=true)
    @ForeignKey(name="FK_ALBUM_ACMNT_ID")
    @JSON(serialize=false)
    public CircleAlbum getCircleAlbum() {
        return circleAlbum;
    }

    public void setCircleAlbum(CircleAlbum circleAlbum) {
        this.circleAlbum = circleAlbum;
    }*/

    @Override
    public String toString() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public boolean equals(Object o) {
        return false;  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public int hashCode() {
        return 0;  //To change body of implemented methods use File | Settings | File Templates.
    }
}